home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DRDOSTIP.ARJ
/
CHOICES.DOC
< prev
next >
Wrap
Text File
|
1991-05-14
|
4KB
|
117 lines
DR DOS CHOICES
Copyright (c)1991 by Scott M. Thomas. All Rights Reserved.
SET CHOICE (SCHOICE.EXE) and GET CHOICE (GCHOICE.EXE) are programs that I
wrote which allow you to pass configuration information from CONFIG.SYS to
AUTOEXEC.BAT. These should work with any PC operating system but were
written to take advantage of DR DOS's decision making capabilities in the
CONFIG.SYS file.
I make NO WARRANTY OR GUARANTEE OF ANYKIND that this program will do anything
or not do anything!
I am releasing these programs as FREEWARE. In other words you may use these
programs freely and you don't owe me a cent. All I ask is that this document
(CHOICES.DOC) and the 2 exe's (GCHOICE.EXE,SCHOICE.EXE) are all distributed
together in unmodified form. This is copyrighted material and I reserve all
rights to it.
SCHOICE.EXE is installed in the CONFIG.SYS file. It accepts a single
parameter, a number from 0 to 255. This parameter is used to indicate the
configuration number to GCHOICE.EXE. The syntax for SCHOICE is:
install schoice.exe 1
This example is using configuration one. The program is not actually
installed, but simply executes and terminates. The INSTALL command just gave
me a way to execute a program in the CONFIG.SYS file.
GCHOICE.EXE is then used in the AUTOEXEC.BAT file to set the ERRORLEVEL to
the value set by SCHOICE.EXE. After executing GCHOICE.EXE you can then use
the IF ERRORLEVEL statement to detect the configuration.
An example CONFIG.SYS file would be:
SHELL=C:\COMMAND.COM C:\ /P /E:256
BREAK=ON
BUFFERS=3
FILES=50
FCBS=0,0
FASTOPEN=128
LASTDRIVE=Z
HISTORY=ON, 256, OFF
HIDOS=ON
?"LOAD DESQVIEW? " GOTO DESQVIEW
?"LOAD WINDOWS? " GOTO WINDOWS
DEVICE=C:\OS\DRDOS\EMM386.SYS /F=E000 /K=AUTO /B=FFFF
INSTALL=C:\OS\DRDOS\SCHOICE.EXE 0
GOTO END
:WINDOWS
DEVICE=C:\OS\QEMM\QEMM386.SYS FRAME=E000 HANDLES=16 RAM NOSORT
DEVICE=C:\OS\QEMM\LOADHI.SYS /R:2 C:\OS\DRDOS\RAMBIOS.SYS
DEVICE=C:\OS\DRDOS\HIDOS.SYS /BDOS=AUTO
DEVICE=C:\OS\QEMM\LOADHI.SYS /R:1 C:\OS\WIN\SMARTDRV.SYS 1024 256
INSTALL=C:\OS\DRDOS\SCHOICE.EXE 2
GOTO END
:DESQVIEW
DEVICE=C:\OS\QEMM\QEMM386.SYS HANDLES=16 RAM NOSORT
DEVICE=C:\OS\DRDOS\HIDOS.SYS /BDOS=C800
INSTALL=C:\OS\DRDOS\SCHOICE.EXE 1
:END
An example AUTOEXEC.BAT file would be:
@ECHO OFF
VERIFY ON
PROMPT $P$G
PATH C:\APPS\CLA;C:\APPS\C\BIN;C:\OS\WIN;C:\OS\DRDOS;C:\APPS\SYSUTIL;C:\APPS\PCTOOLS;C:\OS\QEMM
SET LIB=C:\APPS\CLA
SET OBJ=C:\APPS\CLA
CLS
EAGLE NOATTREMUL > NUL
NONUMLOK
REM --- READ CHOICE SET BY SCHOICE ---
GCHOICE
REM --- ALWAYS CHECK FOR HIGHEST NUMBER FIRST ---
IF ERRORLEVEL 2 GOTO WINDOWS
IF ERRORLEVEL 1 GOTO DESQVIEW
GOTO DRDOSBEG
:WINDOWS
ECHO **** LOADING WINDOWS ****
CD\OS\WIN
WIN
GOTO END
:DESQVIEW
ECHO **** LOADING DESQVIEW ****
LOADHI /R:2 BTRIEVE.EXE /P:4096 /M:16
LOADHI /R:1 C:\APPS\SYSUTIL\ADCACHE.COM -a2048 -w1
CD\OS\DV
PAUSE
XDV
GOTO END
REM The DRDOSBEG and DRDOSEND labels tell the SETUP program which
REM statements it should process. Put any additional statements for
REM DR DOS between these two labels. Any other statements e.g. for
REM other operating systems should be placed outside the labels.
:DRDOSBEG
ECHO **** LOADING DR DOS ****
HILOAD BTRIEVE.EXE /P:4096 /M:16
HILOAD C:\APPS\SYSUTIL\ADCACHE.COM -a0 -w1
HILOAD C:\OS\DRDOS\SWITCHER.COM
MEMMAX -U >NUL
:DRDOSEND
:END
CD\
These programs are using the Keyboard Reset parm in the BIOS data area. The
only time this parm is used is when you press <CTRL>+<ALT>+<DEL>, so I don't
think you will have any problems.
I can be reached via COMPUSERV @ 72727,436 and my mailing address is:
Scott M. Thomas
499 S. Waverly St.
Columbus, OH 43213
<EOF>